import { BasicView } from "@/layouts/basic";
// import HomeView from "@/views/home/HomeView.vue";
import type { RouteRecordRaw } from "vue-router";

const routes: RouteRecordRaw[] = [
  {
    name: "Root",
    path: "/",
    redirect: { name: "/dashboard" },
  },
  {
    name: "Ddashboard",
    path: "/dashboard",
    component: BasicView,
    redirect: '/dashboard/analytics',
    meta: {
      icon: "",
      order: -1,
      title: "Dashboard",
    },
    children: [
      {
        name: "Analytics",
        path: "analytics",
        component: () =>
          import("@/views/dashboard/analytics/AnalyticsView.vue"),
        meta: {
          affixTab: true,
          icon: "",
          title: "Analytics",
        },
      },
      {
        name: "Workspace",
        path: "workspace",
        component: () =>
          import("@/views/dashboard/workspace/WorkspaceView.vue"),
        meta: {
          title: "Workspace",
        },
      },
    ],
  },
];

export default routes;
